package com.lagou.edu.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ProjectName: s1-4
 * @Title: Article
 * @Package: com.lagou.edu.blog.pojo
 * @Description: 文章
 * @author: Ian
 * @date: 27/12/2020 8:56 PM
 * @version: V1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "t_article")
public class Article {
    // id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    // ⽂章标题
    private String title;
    // ⽂章具体内容
    private String content;
    // 发表时间
    private LocalDateTime created;
    // 修改时间
    private LocalDateTime modified;
    // ⽂章分类
    private String categories;
    // ⽂章标签
    private String tags;
    // 是否允许评论
    private Boolean allowComment;
    // ⽂章缩略图
    private String thumbnail;
}
